package com.hutiao.snowhb.wechat.vo;

import java.util.ArrayList;
import java.util.List;

public class WxCustomNewsMsg extends WxCustomMsg {

	private WxCustomArticles news;

	public WxCustomNewsMsg(String touser, String msgtype, WxCustomArticles news) {
		super(touser, msgtype);
		this.news = news;
	}

	public WxCustomArticles getNews() {
		return news;
	}

	public void setNews(WxCustomArticles news) {
		this.news = news;
	}

	public static void main(String[] args) {
		
		
		List<WxCustomNews> articles = new ArrayList<WxCustomNews>();
		articles.add(new WxCustomNews("Happy Day","Is Really A Happy Day","URL","PIC_URL"));
		articles.add(new WxCustomNews("Happy Day","Is Really A Happy Day","URL","PIC_URL"));
		
		WxCustomNewsMsg newsmsg = new WxCustomNewsMsg("OPENID", "news", new WxCustomArticles(articles));
		
		System.out.println(newsmsg.toJSONString());
		
	}
}
